/*top status panels*/
QToolButton[type="icon"]{
	
	border-radius:4px;
	image: url(./Icon/logo.ico);
}
QToolButton[type="topWidget"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(255, 255, 255);
	background-color: #025BB7;
}
QToolButton[type="topWidget"]:pressed{ 
	
	border: 1px solid rgb(255, 255, 255);
	background-color:gray;
}
QLabel[type="topWidget"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(255, 255, 255);
	background-color: #172455;
}
QComboBox[type="topWidget"]{
	
	font-size:16px;
	border: 1px solid white;
	padding: 1px 2px 1px 2px;
	color:rgb(0, 0, 0);
	background-color: #172455;
}
QComboBox[type="topWidget"] QAbstractItemView::item{
	min-height: 25px;
}
QLabel[status="red"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(0, 0, 0);
	background-color: rgb(255,0,0);
}
QLabel[status="green"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(0, 0, 0);
	background-color: #00c957;
}

QLabel[status="gray"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(0, 0, 0);
	background-color: #8c8c8c;
}
QLabel[status="orange"]{
	
	font-size:16px;
	font-weight:bold;
	border: 1px solid rgb(255, 255, 255);
	color:rgb(0, 0, 0);
	background-color: #ffff00;
}
QTextBrowser[type="alarm"]{
	
	font-size:18px;
	font-weight:bold;
	color:rgb(0, 0, 0);
	background-color: rgb(255, 0, 0);
}


/*left mainmenu*/
QFrame[type="mainMenu"]{
	
	background-color:#025BB7;
}
QPushButton[type="mainMenu"]{
	
	border-radius:6px;
	font-size:18px;
	color:rgb(0, 0, 0);
	background-color: #B8B3B3;
}
QPushButton[type="mainMenu"]:pressed{ 
	
	color:rgb(0, 0, 0);
	background-color:gray;
}

.QMenu{
	
	border-radius:6px;
	font-size:16px;
	color:rgb(0, 0, 0);
	background-color: #025BB7;
}
.QMenu::item {
	
	padding:8px 18px;
	margin:4px 6px;
	border-radius:6px;
	border: 1px solid #FFFFFF;
	background-color: #B7B6BE;
	
}
.QMenu::item:selected {
	
	font-weight:bold;
	border: 2px solid #FFFFFF;
	background-color: #025BB7;
}


/*program frame*/
ProjectDll QFrame{
	
	background-color: #CDD3D7;
}

ProjectDll QTreeView {
	
	font-size:16px;
}
ProjectDll QTreeView::item {
	
	padding:6px 6px;
	margin:2px 2px;
	border-radius:6px;
}
ProjectDll QTreeView::item:selected {

	background-color: #025BB7;
}

ProjectDll QToolBox::tab {
	
	font: 12pt; 
    border-radius: 5px;
    color:rgb(0, 0, 0); 
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
}

ProjectDll QToolBox::tab:selected { 

	font-weight:bold;
}
ProjectDll QLabel{
	
	border-radius: 5px;
	margin:2px;
	padding: 2px 2px 2px 2px;	/*top right bottom left*/
	min-height:24px;
	background-color: #E6E6E6;
}

ProjectDll QLineEdit{
	
	border-radius: 5px;
	margin:2px;
	padding: 2px 2px 2px 2px;	/*top right bottom left*/
	min-height:24px;
	background-color: #cecaca;
}

/*number frame*/
QFrame[type="main"]{
	
	background-color: #CDD3D7;
}
QFrame[type="title"]{
	
	color:black;
	background-color: #0165cb	;
}

/*backup frame*/
QPushButton[type = "only_icon"]{

	font-size:18px;
	font-weight:bold;
	padding: 5px 5px 5px 5px;
	border-radius:6px;
	border: 1px solid #FFFFFF;
	border-image: url(./Icon/unchecked.png);
	color:rgb(0, 0, 0);
}
QPushButton[type = "only_icon"]:checked{ 

	border-image: url(./Icon/checked.png);
}
QPushButton[type = "only_color"]{
	
	font-size:18px;
	font-weight:bold;
	border-radius:6px;
	border: 1px solid #FFFFFF;
	padding: 5px 5px 5px 5px;
	color:rgb(0, 0, 0);
}
QPushButton[type = "only_color"]:checked{ 
	
	background-color: #00c957;
}
QPushButton[type = "only_color"]:disabled{ 
	
	color:#999999;
	background-color: #bfbfbf;
}


QPushButton[type = "pagedown"]{
	
	font-size:16px;
	font-weight:bold;
	border-radius:6px;
	color:rgb(0, 0, 0);
	image: url(./Icon/pagedown.png);
}
QPushButton[type = "pagedown"]:pressed{ 
	
	background-color: gray;
}

QPushButton[type = "pageup"]{
	
	font-size:16px;
	font-weight:bold;
	border-radius:6px;
	color:rgb(0, 0, 0);
	image: url(./Icon/pageup.png);
}
QPushButton[type = "pageup"]:pressed{ 
	
	background-color: gray;
}


/*default frame*/
MyClickedLabel[status="red"]{
	
	font-size:16px;
	color:black;
	background-color: rgb(255, 0, 0);
}

MyClickedLabel[status="green"]{
	
	font-size:16px;
	color:black;
	background-color: #00c957;
}

MyClickedLabel[status="orange"]{
	
	font-size:16px;
	color:black;
	background-color: rgb(255, 255, 0);
}

MyClickedLabel[status="led_on"]{
	
	color:rgb(0, 0, 0);
	image: url(./Icon/led_on.png);
}

MyClickedLabel[status="led_off"]{
	
	color:rgb(0, 0, 0);
	image: url(./Icon/led_off.png);
}


QLabel[type = "activate"]{
	
	font-size:16px;
	border-radius:6px;
	image: url(./Icon/green_checked.png);
}

QLabel[type = "unactivate"]{
	
	font-size:16px;
	border-radius:6px;
	image: url(./Icon/red_unchecked.png);
}


/*general setting*/
.QLabel{
	
	font-size:16px;
	font-weight:bold;
	color:rgb(0, 0, 0);
}
.QCheckBox{
	
	font-size:16px;
	font-weight:bold;
	color:rgb(0, 0, 0);
}
.QGroupBox{
	
	font-size:16px;
	font-weight:bold;
	color:rgb(0, 0, 0);
}	

.QComboBox {
	
	font-size:14px;
	font-weight:bold;
	color:rgb(0, 0, 0);
	background-color: #cecaca;
    border: 1px solid gray;
    border-radius: 3px;
}

.QComboBox QAbstractItemView::item{
	min-height: 22px;
}

.QComboBox:editable {
    background: #f2f2f2;
}
.QComboBox:on { 
    padding-top: 3px;
    padding-left: 4px;
}
.QComboBox:!editable, QComboBox::drop-down:editable {
	
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
    stop: 0 #E1E1E1, stop: 0.4 #DDDDDD,
    stop: 0.5 #D8D8D8, stop: 1.0 #D3D3D3);
}

.QComboBox:!editable:on, QComboBox::drop-down:editable:on {
	
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
	stop: 0 #D3D3D3, stop: 0.4 #D8D8D8,
	stop: 0.5 #DDDDDD, stop: 1.0 #E1E1E1);
}

.QComboBox::drop-down {
	
    subcontrol-origin: padding;
    subcontrol-position: top right;
    width: 15px;
    border-left-width: 1px;
    border-left-color: darkgray;
    border-left-style: solid; /* just a single line */
    border-top-right-radius: 3px; /* same radius as the QComboBox */
    border-bottom-right-radius: 3px;
}


.QTableWidget{
	
	font-size:16px;
	color:rgb(0, 0, 0);
	background-color: #CDD3D7;
}
.QTableView{
	
	font-size:16px;
	color:rgb(0, 0, 0);
	background-color: #CDD3D7;
}
.QHeaderView::section { 

	font-size:16px;
	color:rgb(0, 0, 0);
	background-color:#CDD3D7;
}
.QSpinBox{
	
	font-size:16px;
	border-radius: 3px;
	color:rgb(0, 0, 0);
	background: white;
}
.QDoubleSpinBox{
	
	font-size:16px;
	border-radius: 3px;
	color:rgb(0, 0, 0);
	background: white;
}
.QLineEdit{
	
	font-size:16px;
	border-radius: 3px;
	color:rgb(0, 0, 0);
	background: white;
}
.QTextBrowser{
	
	font-size:16px;
	border-radius: 3px;
	color:rgb(0, 0, 0);
	background-color: #E6E6E6;
}
.QPushButton{
	
	font-size:16px;
	font-weight:bold;
	padding: 5px 5px 5px 5px;
	border-radius:6px;
	border: 1px solid #FFFFFF;
	color:rgb(0, 0, 0);
	background-color: #B8B3B3;
}
.QPushButton:pressed{ 
	
	background-color: gray;
}
.QPushButton:focus{ 
	
	background-color: #025BB7;
}


.QPushButton:disabled{ 
	
	color:#999999;
	background-color: #bfbfbf;
}
.QToolButton{
	
	border: 1px solid #FFFFFF;
	color:rgb(0, 0, 0);
	background-color: #B8B3B3;
}
.QToolButton:pressed{ 
	
	background-color: gray;
}
.QToolButton:focus{ 
	
	background-color: #025BB7;
}

/*vertical scrollbar*/
.QScrollBar::sub-line:vertical {
 
}
.QScrollBar::up-arrow:vertical{
    
}
.QScrollBar:vertical{
   
}
.QScrollBar::handle:vertical {
   
}
.QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
   
}
.QScrollBar::add-line:vertical {
    
}
.QScrollBar::down-arrow:vertical {
    
}

/*horizontal scrollbar*/
.QScrollBar::sub-line:horizontal {
 
}
.QScrollBar::up-arrow:horizontal{
    
}
.QScrollBar:horizontal{
   
}
.QScrollBar::handle:horizontal {
   
}
.QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
   
}
.QScrollBar::add-line:horizontal {
    
}
.QScrollBar::down-arrow:horizontal {
    
}